package com.shop.cloud.dao.system;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.shop.cloud.common.mybatis.MybatisDao;
import com.shop.cloud.domain.system.RoleRessources;
import com.shop.cloud.domain.system.SysResource;

public interface ExtSysResourceDao extends MybatisDao<SysResource>{

	List<SysResource> findMenusByUserId(Map<String,Object> params);
	
	List<SysResource> findPermissionsByUserId(Map<String,Object> params);

	List<SysResource> findPermissionsByUserIdToString(Map<String, Object> params);

	int insertRoleResourceBatch(@Param(value = "list") List<RoleRessources> list);
	
	int insertRoleResource(Map<String, String> params);
	
	List<String> findRoleResource(Map<String, Object> params);

	int removeResourceIds(Map<String, Object> params);

	List<Map<String, Object>> list(Map<String, Object> params);
	
}